package com.ke.jun.bg.petpackmvvm.base.activity

import android.os.Bundle
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import com.ke.jun.bg.petpackmvvm.base.viewmodel.BaseViewModel

abstract class BaseVmADbctivity<VM:BaseViewModel,DB:ViewDataBinding>:BaseVmActivity<VM>() {
    lateinit var mBindimng: DB

    override fun onCreate(savedInstanceState: Bundle?) {
        userDataBinding(true)
        super.onCreate(savedInstanceState)
    }

    override fun initDataBind() {
        mBindimng=DataBindingUtil.setContentView(this,layoutId())
        mBindimng.lifecycleOwner=this
    }
}